package com.roast.util;

public class QueryBeanFactory {

    public static QueryObject getBean(String beanID) {
        QueryObject queryObject = null;
        MyBeanFactory factory = new MyBeanFactory("src/main/resources/queryObjects.xml");

        try {
            queryObject = (QueryObject) factory.getBean(beanID);
        } catch (Exception e) {
            System.out.println("[QueryBeanFactory:getBean:[" + e + "]]");
        }
        return queryObject;
    }
}
